/*
 * Login Functions
 * 
 * functions that will make calls to Login ajax files
 * 
 * @author : Jason Meulenhoff
 * @mail : mail@kacangboi.com
 * @web : http://kacangboi.com
 * @copyright : KacangNetworks 2010
 * 
 */

function login(username,password)
{
	new ajaxRequest("../ajax/login.ajax.php","username="+username+"&password="+password+"",result);
}

function result(data)
{
	if(data == "100100100")
		location.href = 'home.controller.php';
	else if (data == "100100200")
		location.href = 'home.controller.php';
	else
		$(".error").html(data).fadeIn();
}